<template>
  <div class="check-button" :class="{ checked: isChecked }">
    <img src="~assets/img/cart/tick.svg" alt="" />
  </div>
</template>

<script>
export default {
  name: "CheckButton",
  props: {
    isChecked: {
      type: Boolean,
      default: true,
    },
  },
};
</script>

<style scoped>
.check-button {
  position: relative;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
}
.check-button img {
  width: 17px;
  height: 17px;
  position: absolute;
  top: 1px;
}
.checked {
  border-color: red;
  background-color: red;
}
</style>